<?php /* Smarty version 2.6.18, created on 2016-11-30 16:36:56
         compiled from keep/m.keep.list.tpl.php */ ?>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<script src="mstatic/js/jquery.min.js" type="text/javascript"></script>
<script src="mstatic/js/bootstrap.min.js"  type="text/javascript"></script>
<script src="mstatic/js/jquery-ui.js"  type="text/javascript"></script><!--日历-->
<link href="mstatic/css/bootstrap.min.css"  type="text/css" rel="stylesheet">
<link href="mstatic/css/index.css" type="text/css" rel="stylesheet">
<link href="mstatic/css/jquery-ui.css"  type="text/css" rel="stylesheet">

<title>教务处-继续教育</title>
</head>

<body>
<!--头部-->
<nav class="navbar navbar-default navbar-fixed-top  top" role="navigation">
  <div class="container-fluid">
    <div class="navbar-header" style=" width:100%;"> <a class="navbar-brand"  href="javascript:history.go(-1);" style=" width:100%;  padding-right:0px;"> <span class="glyphicon glyphicon-arrow-left white"></span> 
      <!--    <span class="glyphicon glyphicon-pause white" style="margin-left:2%;"></span>--> 
      <span class="white" style="margin-left:10%">继续教育</span> <span class="glyphicon glyphicon-user white" style="float:right"></span> </a> </div>
  </div>
  <!-- /.container-fluid --> 
</nav>
<!--头部 end--> 
<!--主体部分-->
<div class="container" style="margin-top:70px;">
  <div class="row" style="margin-top:10px;">
    <div class="col-sm-12 distance" >
      <div class="form-group">
        <div class="col-sm-10">
          <p>
            <a type="button" <?php if ($this->_tpl_vars['type'] == 1): ?> class="btn btn-success" <?php else: ?> class="btn btn-default" <?php endif; ?>href="index.php?a=keep.list&type=1">&nbsp;&nbsp;&nbsp;继续教育&nbsp;&nbsp;&nbsp;</a>
             <a type="button" <?php if ($this->_tpl_vars['type'] == 2): ?> class="btn btn-success" <?php else: ?> class="btn btn-default" <?php endif; ?>href="index.php?a=keep.list&type=2">&nbsp;&nbsp;&nbsp;其他资料&nbsp;&nbsp;&nbsp;</a></p>
        </div>
      </div>
    </div>
  </div>

  <div class="row" style="margin-right:10%;">
    <div  class="col-xs-sm  text-right" > <a class="btn btn-primary" href="index.php?a=keep.add&keep_type=<?php echo $this->_tpl_vars['type']; ?>
" style="width:30%">增加</a></div>
  </div>
  <!--row  end-->
  <form name="myform" action="" method="post">
  <div class="row" style="margin-top:10px;">
    <div class="col-sm-12 distance" >
      <div class="form-group">
        <label for="inputEmail3" class="col-sm-2 control-label">项目名称:</label>
        <div class="col-sm-10">
          <input type="text" name="keep_name" class="form-control">
        </div>
      </div>
    </div>
    <div class="col-sm-12 distance" >
      <div class="form-group">
        <label for="inputEmail3" class="col-sm-2 control-label"><?php if ($this->_tpl_vars['keep_type'] == 2): ?>提交者：<?php else: ?>教师姓名：<?php endif; ?></label>
        <div class="col-sm-10">
          <input type="text" name="keep_owner" class="form-control">
        </div>
      </div>
    </div>
    <div class="col-sm-12 distance">
      <div class="form-group">
        <label for="" class="col-sm-2 control-label">开始时间:</label>
        <div class="col-sm-10">
          <input type="text" class="form-control" value="<?php echo $this->_tpl_vars['from']; ?>
" id="from" name="from">
        </div>
      </div>
    </div>
     <div class="col-sm-12 distance">
      <div class="form-group">
        <label for="" class="col-sm-2 control-label">结束时间:</label>
        <div class="col-sm-10">
          <input type="text" class="form-control" value="<?php echo $this->_tpl_vars['to']; ?>
" id="to" name="to">
        </div>
      </div>
    </div>
    <div class="col-xs-12 distance">
      <div class="form-group  text-center" style="padding-top:0px;">
        <button type="submit" class="btn btn-success absolutely ">搜索</button>
      </div>
    </div>
  </div>
  <div class="row" style="margin-top:15px;margin-left:1px; margin-right:1px;">
  <?php $_from = $this->_tpl_vars['keep_lists']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['value']):
?>
    <table class="table table-striped table-bordered text-center"  id="middles">
      <tr>
        <td>项目名称</td>
        <td colspan="2"><?php echo $this->_tpl_vars['value']['keep_name']; ?>
</td>
      </tr>
	  <?php if ($this->_tpl_vars['type'] == 1): ?>
      <tr>
        <td>教师姓名</td>
        <td colspan="2"><?php echo $this->_tpl_vars['value']['keep_owner']; ?>
</td>
      </tr>
	  <tr>
        <td>培训日期</td>
        <td colspan="2"><?php echo $this->_tpl_vars['value']['keep_time']; ?>
</td>
      </tr>
	  <tr>
        <td>培训机构</td>
        <td colspan="2"><?php echo $this->_tpl_vars['value']['keep_unit']; ?>
</td>
      </tr>
	  <tr>
        <td>学时</td>
        <td colspan="2"><?php echo $this->_tpl_vars['value']['keep_hour']; ?>
</td>
      </tr>
	  <tr>
        <td>学分</td>
        <td colspan="2"><?php echo $this->_tpl_vars['value']['keep_min']; ?>
</td>
      </tr>
	  <tr>
        <td>实际学分</td>
        <td colspan="2"><?php echo $this->_tpl_vars['value']['keep_score']; ?>
</td>
      </tr>
	  <tr>
        <td>备注</td>
        <td colspan="2"><?php echo $this->_tpl_vars['value']['keep_remark']; ?>
</td>
      </tr>
	  <?php else: ?>
	  <tr>
        <td>提交者</td>
        <td colspan="2"><?php echo $this->_tpl_vars['value']['user_name']; ?>
</td>
      </tr>
	  <tr>
        <td>提交日期</td>
        <td colspan="2"><?php echo $this->_tpl_vars['value']['keep_time']; ?>
</td>
      </tr>
	  <tr>
        <td>内容</td>
        <td colspan="2"><?php echo $this->_tpl_vars['value']['keep_content']; ?>
</td>
      </tr>
	  <?php endif; ?>
      
      <tr>
        <td>操作</td>
        <td><a type="button" class="btn btn btn-warning" href="index.php?a=keep.info&type=<?php echo $this->_tpl_vars['type']; ?>
&keep_id=<?php echo $this->_tpl_vars['value']['keep_id']; ?>
">查看</a></td>
        <td><a type="button" class="btn btn-danger" href="index.php?a=keep.update&type=<?php echo $this->_tpl_vars['type']; ?>
&keep_id=<?php echo $this->_tpl_vars['value']['keep_id']; ?>
">修改</a></td>
      </tr>
     
    </table>
<?php endforeach; endif; unset($_from); ?>
  </div>
</div>
</form>
<!--container  end--> 
<!--主体部分  end--> 
<!--底部-->
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "m.index.footer.tpl.php", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?> 
<script>
    $(function() {
        $( "#from" ).datepicker({
            defaultDate: "+1w",
            changeMonth: true,
            changeYear: true,
            numberOfMonths:1,
            onClose: function( selectedDate ) {
                $( "#to" ).datepicker( "option", "minDate", selectedDate );
            }
        });
        $( "#to" ).datepicker({
            defaultDate: "+1w",
            changeMonth: true,
            changeYear: true,
            numberOfMonths:1,
            onClose: function( selectedDate ) {
                $( "#from" ).datepicker( "option", "maxDate", selectedDate );
            }
        });
    });
</script>

